package com.example.yyjc.domain.countryanalyze;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.metadata.BaseRowModel;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
import org.apache.ibatis.type.Alias;

/**
 * @ClassName Country
 * @Description TODO
 * @Author lvyongwei
 * @Date 2020-11-11 14:22
 **/
@Data
@Alias("country")
@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL)
public class Country extends BaseRowModel {

    /**
     * id
     */
    @ExcelIgnore
    private Integer id;

    /**
     * 城市名
     */
    @ExcelProperty(value = "城市名")
    private String countryName;

    /**
     * 订单量
     */
    @ExcelProperty(value = "订单数量")
    @ColumnWidth(value = 15)
    private Integer orderCount;

    /**
     * 日期
     */
    @ExcelProperty(value = "日期(2020年12月即为202012)")
    @ColumnWidth(value = 40)
    private String createTime;
}
